package com.chinasoft.lqy;

import com.chinasoft.teacher.TrueWord;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

public class lqy implements TrueWord {
    public lqy() {
        wordList.add("加油");
        wordList.add("努力");
        wordList.add("奋斗");
        wordList.add("拼搏");
    }
    List<String> wordList = new ArrayList<String>();
    Random random = new Random();

    @Override
    public String getName() {
        return "lqy";
    }

    @Override
    public String getWords() {
        // 得到随机数
        int index = random.nextInt(wordList.size());
        return wordList.get(index);
    }
}
